#ifndef _SOUND_MANAGER_H
#define _SOUND_MANAGER_H

#include "ofMain.h"

class soundManager{
private:
	// event sound
	ofSoundPlayer  deadASound; // dead a player from team A
	ofSoundPlayer  deadBSound; //dead a player from team B
	ofSoundPlayer  scoreASound; // team a score
	ofSoundPlayer  scoreBSound; // team b score
	ofSoundPlayer  collisionsSound;// 
	
	// sound loading gun to shoot - will be about 2 seconds to shoot
	ofSoundPlayer  shootingSound1;
	ofSoundPlayer  shootingSound2;
	ofSoundPlayer  shootingSound3;
	ofSoundPlayer  shootingSound4;
	ofSoundPlayer  shootingSound5;
	ofSoundPlayer  shootingSound6;
	ofSoundPlayer  shootingSound7;
	ofSoundPlayer  shootingSound8;
	ofSoundPlayer  shootSound;// when a player shoot a pixel
	// sound backgound
	ofSoundPlayer  backgroundSound;
	ofSoundPlayer  endSound;
	ofSoundPlayer  startSound;// start game 
	ofSoundPlayer  preparationSound;
	
public:
	soundManager();
	~soundManager();
	// event sound
	void dead(int team); // when player die
	void score(int team); // when one team score
	void collisions(char side=' '); // when a shoot from diferents teams collide
	void shoot(); // when someone shoot
	void shooting(int team, int id); // when someone is loading gun to shoot
	void shootingStop(int team, int id);
	// loop sounds
	void start();
	void startStop();
	void end();
	void endStop();
	void background();
	void backgroundStop();
	void preparation();
	void preparationStop();
};

#endif